<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id='app'>
        <!-- checkbox 单选框 -->
        <label for="agree">
            <input type="checkbox" id="agree" v-model="isArgee">同意协议
        </label>
        <h2>您选择的是:{{isArgee}}</h2>
        <button :disabled="!isArgee">下一步</button>
        <h2>{{message}}</h2>

        <input type="checkbox" value="足球" v-model="hobbies">足球
        <input type="checkbox" value="蓝球" v-model="hobbies">蓝球
        <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球
        <input type="checkbox" value="羽毛球" v-model="hobbies">羽毛球
        <h2>{{hobbies}}</h2>
    </div>
    <script src='../js/vue.js'></script>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                message: 'hello vue',
                isArgee: false,
                hobbies: []
            },
            methods: {},
            computed: {},
            filters: {},
        })
    </script>
</body>

</html>